home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 5917 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: jojo.IN-Berlin.DE!not-for-mail
  2. Newsgroups: comp.sys.amiga.programmer
  3. References: <4ipcd9$24l@sun1000.pwr.wroc.pl> <19960320.3FE920.11D7C@ao091.du.pipex.com>
  4. From: "Bernhard Graf" <graf@jojo.IN-Berlin.DE>
  5. Date: Thu, 21 Mar 1996 18:58:36 +0100
  6. Distribution: world
  7. X-NewsReader: IntuiNews 1.3a (7.9.95)
  8. Subject: Re: COPROCESSOR EMULATOR..
  9. Message-ID: <66095638@jojo.IN-Berlin.DE>
  10.  
  11. In article <19960320.3FE920.11D7C@ao091.du.pipex.com>: "Re: COPROCESSOR EMULATOR.."
  12. Mathew Hendry <m.hendry@dial.pipex.com> wrote:
  13.  
  14. MH> A Member of Elysium (st103@sco.zsi.pwr.wroc.pl) wrote:
  15. MH> : I remember from okd days that there was an 68010 emulator for 68000. If i
  16. MH> : remember good it was based on the fact that there is an interupt when
  17. MH> : procesor meets an unknown command and ib than interrupt one could do the
  18. MH> : emulation. Is this possible to do th same with the Math coprocessor?
  19. MH> 
  20. MH> Yes. It would be very slow indeed, though. You would need to intall an
  21. MH> exception handler to catch Line 1111 emulation exceptions and emulate the
  22. MH> instruction which caused the exception.
  23.  
  24. I say no. I thought about that subject years ago (wenn I had a 68000 and
  25. CoPros were very expensive).
  26.  
  27. The Problem: The Amiga's multitasking OS.
  28. How do you get a CoPro in the system, when multitasking is yet running?
  29. Remember that for every task switch you have to store ALL registers of
  30. the old task and restore ALL registers for the next active task.
  31. From the moment you start the emulator, it has to store all real registers
  32. and the fake registers of the emulated FPU. Maybe this is not a problem
  33. *IF* the OS checks for a FPU on every task switch and not only at boot
  34. time. The problem is that for the first time after the emulator has
  35. been started, all tasks have to restore ONLY the real 68k-registers and
  36. not the full set (including the FPU registers).
  37.  
  38. If you have any idea how to solve this, it may be done (but what for ;-).
  39.  
  40. MH> : Have saoebody done a thig liek this?
  41. MH> 
  42. MH> Not that I know of, although you might use as a starting point:
  43.  
  44. Yes, on a Macintosh.
  45.  
  46.  
  47. Ciao
  48. --
  49. Bernhard Graf
  50. mail graf@jojo.IN-Berlin.DE
  51.      graffbgd@sp.zrz.TU-Berlin.DE
  52.